import re
f = open ("result.txt","a")
h = open ("old.txt")
h = h.read()
ez=r"(1.*?2.*?.+?\n)"
result = re.findall(ez,h)
for each in result :
    print (each)
    f.write (each)
f.close ()



